/**
 * 部门
 */
import { $axios } from "../request1.js";
import prefix from "../base.js";

export default {
  //查询站点下拉
  listDept(data) {
    return $axios(`${prefix.dept}/listDept`, data);
  },
  listDeptHtml(data) {
    return $axios(`${prefix.dept}/listDeptHtml`, data);
  },
  //获取注册的数据
  registerInit(data) {
    return $axios(`${prefix.riders}/registerInit`, data, "GET");
  },
  //微信绑定并登录
  bindAndLogin(data) {
    return $axios(`${prefix.user}/bindAndLogin`, data, "POST");
  },
  //获取验证码
  phoneCode(data) {
    return $axios(`${prefix.verify}/phoneCode`, data, "POST");
  },
  //手机验证码校验
  verifyPhoneCode(data) {
    return $axios(`${prefix.verify}/verifyPhoneCode`, data, "POST");
  },
  //获取注册详情信息  /webrec/history1?deptId=100
  getHistory1(id,inductiontype) {
    return $axios(`${prefix.jiekuan}/webrec/history1?deptId=${id}&inductionType=${inductiontype}`, null, "GET");
  },
  isDesignated(data) {
    return $axios(`${prefix.dept}/isDesignated`, data);
  },
  listDeptCenterHtml(data) {
    return $axios(`${prefix.dept}/listDeptCenterHtml`, data);
  },
};
